var room1 = roomFactory(5, 5, 1, 3, 234);
room1.tileX = 6;
room1.tileY = 6;
var room2 = roomFactory(3, 3, 3, 1, 432);
room2.tileX = 3;
room2.tileY = 3;
var room3 = roomFactory(5, 5, 1, 3, 234);
room3.tileX = 10;
room3.tileY = 10;

var structuringElement = instance_create(0, 0, obj_Module);

for(var yyy = 0; yyy < 2; yyy++)
{
    for(var xxx = 0; xxx < 2; xxx++)
    {
        var tile = 0;
        tile = instance_create(0, 0, obj_Tile);
        setTile(xxx, yyy, tile, structuringElement);
    }
}

var dilationRoom = dilateModule(room2, structuringElement);

writeArray2D(dilationRoom.tiles);

test = absCheckOverlap(room1, room2);
assert("Does room2 overlap room1? Expected: false" , test);
test = absCheckOverlapRadius(room1, room2, 2);
assert("Does room2 overlap room1 with dilation of 2? Expected: true", test);
test = absCheckOverlapRadius(room2, room3, 2);
assert("Does room2 overlap room3 with dilation of 2? Expected: false", test);
